<template>
  <div class="wrapper">
    <swiper :options="swiperOption">
      <swiper-slide>
        <img class="swiper-img" src="@/assets/styles/img/1234.png" />
      </swiper-slide>
      <swiper-slide>
        <img class="swiper-img" src="@/assets/styles/img/1234.png" />
      </swiper-slide>

      <div class="swiper-pagination" slot="pagination"></div>
    </swiper>
  </div>
</template>

<script>
import { swiper, swiperSlide } from "vue-awesome-swiper";
import "swiper/dist/css/swiper.css";
export default {
  name: "HomeSwiper",
  components: {
    swiper,
    swiperSlide,
  },
  data() {
    return {
      swiperOption: {
        autoplay: true,
        loop: true,
        pagination: {
          el: ".swiper-pagination",
          clickable: true,
        },
      },
    };
  },
};
</script>

<style lang='stylus' scoped>
.wrapper >>> .swiper-pagination-bullet-active {
  background: red !important;

  .wrapper {
    overflow: hidden;
    width: 100px;
    height: 0;
    padding-bottom: 31.25%;
    background: #eee;
  }
}

.swiper-img {
  width: 100%;
  height: 5rem;
}
</style>